package com.liumuxian.exam.pojo;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@IdClass(ExamQuestion.class)
@Table(name = "tb_examquestion")
public class ExamQuestion implements Serializable {
    @Id
    @Column(name = "examinfoid",length = 20)
    private String examinfoid;//考试信息id
    @Id
    @Column(name = "questionid",length = 20)
    private String questionid;//题库id
    @Column(name = "score",length = 20)
    private Long score;//分数
    @Column(name = "weight",length = 2)
    private int weight;//排序值
    @Column(name = "creatdate")
    private Date creatdate;
    @Column(name = "updatedate")
    private Date updatedate;
}
